/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jplurk.api;

import java.util.Date;
import org.json.JSONObject;

/**
 *
 * @author Jose
 */
public class SessionUser {
    
    private String page_title;
    private Long uid;
    private Long is_channel; 
    private String full_name; 
    private Long id; 
    private String default_qual; 
    private String display_name; 
    private String default_qual_mini; 
    private String star_reward; 
    private String theme; 
    private Date date_of_birth; 
    private String location; 
    private Long recruited;
    private String default_lang;
    private String relationship; 
    private Long has_profile_image;
    private String packs_hash;
    private String nick_name;
    private Long gender; 
    private Long notifications_count;
    private Double karma; 
    private Long timeformat;

    public Date getDate_of_birth() {
        return date_of_birth;
    }

    public void setDate_of_birth(Date date_of_birth) {
        this.date_of_birth = date_of_birth;
    }

    public String getDefault_lang() {
        return default_lang;
    }

    public void setDefault_lang(String default_lang) {
        this.default_lang = default_lang;
    }

    public String getDefault_qual() {
        return default_qual;
    }

    public void setDefault_qual(String default_qual) {
        this.default_qual = default_qual;
    }

    public String getDefault_qual_mini() {
        return default_qual_mini;
    }

    public void setDefault_qual_mini(String default_qual_mini) {
        this.default_qual_mini = default_qual_mini;
    }

    public String getDisplay_name() {
        return display_name;
    }

    public void setDisplay_name(String display_name) {
        this.display_name = display_name;
    }

    public String getFull_name() {
        return full_name;
    }

    public void setFull_name(String full_name) {
        this.full_name = full_name;
    }

    public Long getGender() {
        return gender;
    }

    public void setGender(Long gender) {
        this.gender = gender;
    }

    public Long getHas_profile_image() {
        return has_profile_image;
    }

    public void setHas_profile_image(Long has_profile_image) {
        this.has_profile_image = has_profile_image;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getIs_channel() {
        return is_channel;
    }

    public void setIs_channel(Long is_channel) {
        this.is_channel = is_channel;
    }

    public Double getKarma() {
        return karma;
    }

    public void setKarma(Double karma) {
        this.karma = karma;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getNick_name() {
        return nick_name;
    }

    public void setNick_name(String nick_name) {
        this.nick_name = nick_name;
    }

    public Long getNotifications_count() {
        return notifications_count;
    }

    public void setNotifications_count(Long notifications_count) {
        this.notifications_count = notifications_count;
    }

    public String getPacks_hash() {
        return packs_hash;
    }

    public void setPacks_hash(String packs_hash) {
        this.packs_hash = packs_hash;
    }

    public String getPage_title() {
        return page_title;
    }

    public void setPage_title(String page_title) {
        this.page_title = page_title;
    }

    public Long getRecruited() {
        return recruited;
    }

    public void setRecruited(Long recruited) {
        this.recruited = recruited;
    }

    public String getRelationship() {
        return relationship;
    }

    public void setRelationship(String relationship) {
        this.relationship = relationship;
    }

    public String getStar_reward() {
        return star_reward;
    }

    public void setStar_reward(String star_reward) {
        this.star_reward = star_reward;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public Long getTimeformat() {
        return timeformat;
    }

    public void setTimeformat(Long timeformat) {
        this.timeformat = timeformat;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }
    
    public static void main(String[] args) {
        
        //String json = "{\"page_title\": \"Plurkin'\",\"uid\": 2802345,\"is_channel\": 0,\"full_name\": \"Jose Aragon\",\"id\": 2802345,\"default_qual\": \"hates\",\"display_name\": null,\"default_qual_mini\": \"says\",\"star_reward\": null,\"theme\": \"marine-theme\",\"date_of_birth\": new Date(\"Thu, 06 Mar 1980 00:01:00 GMT\"),\"location\": \"Madrid, Spain\",\"recruited\": 3,\"default_lang\": \"es\",\"relationship\": \"not_saying\",\"has_profile_image\": 1,\"packs_hash\": \"936f3ce58656a1e\",\"nick_name\": \"chemaaa\",\"gender\": 1,\"notifications_count\": 0,\"karma\": 42.869999999999997,\"timeformat\": 0}";
        //String json = "{\"page_title\": \"Plurkin'\",\"uid\": 2802345,\"is_channel\": 0,\"full_name\": \"Jose Aragon\",\"id\": 2802345,\"default_qual\": \"hates\",\"display_name\": null,\"default_qual_mini\": \"says\",\"star_reward\": null,\"theme\": \"marine-theme\",\"date_of_birth\": \"Thu, 06 Mar 1980 00:01:00 GMT\",\"location\": \"Madrid, Spain\",\"recruited\": 3,\"default_lang\": \"es\",\"relationship\": \"not_saying\",\"has_profile_image\": 1,\"packs_hash\": \"936f3ce58656a1e\",\"nick_name\": \"chemaaa\",\"gender\": 1,\"notifications_count\": 0,\"karma\": 42.869999999999997,\"timeformat\": 0}";
        String json = "{\"x\": new Date(\"Thu, 06 Mar 1980 00:01:00 GMT\"),\"uid\": 2802345}";
        try {
            JSONObject o = new JSONObject(json);

            System.out.println(o.toString());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
    }
}
